﻿@model IEnumerable<LayuiMvcUtil.Result.ComboboxResult>
<div class="layui-container fly-marginTop">
    <div class="fly-panel">
        <div class="layui-tab layui-tab-brief">
            <ul class="layui-tab-title">
                <li class="layui-this">发表新帖</li>
            </ul>
            <div class="layui-tab-content" style="padding:20px 15px;">
                <div class="layui-tab-item layui-show">
                    <div class="layui-form layui-form-pane">
                        <div class="layui-row layui-col-space15">
                            <div class="layui-col-xs4">
                                <div class="layui-form-item">
                                    <label class="layui-form-label">
                                        所在专栏
                                    </label>
                                    <div class="layui-input-block">
                                        <select name="PostType" lay-verify="required">
                                            <option value="">请选择</option>
                                            @foreach(var item in Model)
                                            {
                                                <option value="@item.Value">@item.Text</option>
                                            }
                                        </select>
                                    </div>
                                </div>
                            </div>

                            <div class="layui-col-xs8">
                                <div class="layui-form-item">
                                    <label class="layui-form-label" for="txt_Title">标题</label>
                                    <div class="layui-input-block">
                                        <input type="text" name="Title" class="layui-input" lay-verify="required" />
                                    </div>
                                </div>
                            </div>
                            <div class="layui-row">
                                <div class="layui-form-item">
                                    <textarea id="txt_Content" placeholder="详细描述" class="layui-textarea fly-editor" name="Content" file-tag="Post" style="height:480px"></textarea>
                                </div>
                            </div>

                            <div class="layui-row">
                                <div class="layui-form-item">
                                    <button class="layui-btn" lay-submit lay-filter="postPublish">立即发布</button>
                                </div>
                                <input type="hidden" name="RelationGuid" id="relationGuid" value="@Guid.NewGuid()" />
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<script type="text/javascript">
    layui.cache.module = {
        moduleName: 'post',
        pageName:'publishPage'
    }
</script>